package engine.newUi
{
	import engine.control.loading.MultLoader;
	import engine.data.ResPath;
	import engine.ui.lite.BaseUI;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import newx.com.control.NxClip;
	import newx.com.control.Scroll.NxScrollPanel;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;
	
	/**
	 *伙伴招募 
	 * @author yangyuechao
	 * 
	 */	
	public class PartnerRequestNewUI extends BaseUI
	{
		private static var _self:PartnerRequestNewUI;
		
		public var bg:NxClip;
		
		public var mainGroup:NxViewGroup;
		public var heroGroup:NxViewGroup;
		
		public var actorClip:NxClip;
		public var sendBtn:NxButton;
		
		public var Text2:NxLabel;
		public var Text1:NxLabel;
		public var pageLab:NxLabel;
		
		public var preBtn:NxButton;
		public var nexBtn:NxButton;
		
		public function PartnerRequestNewUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		
		public static function getInstance():PartnerRequestNewUI
		{
			if(_self == null){
				_self = new PartnerRequestNewUI();
			}
			return _self;
		}
		
		override protected function BeforeShow():void
		{
			PartnerRequestNewLogic.getInstance().beforeShow();
		}
		
		override protected function AfterHide():void
		{
			PartnerRequestNewLogic.getInstance().afterHide();
		}
		
		override public function Init():void
		{
			PartnerRequestNewLogic.getInstance().Init()
		}
		
		override public function show(space:DisplayObjectContainer=null, onshow:Function=null, ...argc):void
		{
			if(!MultLoader.getInstance().hasSourceByUrl(ResPath.SWF + "partnerRequest.swf")){
				MultLoader.getInstance().load([ResPath.SWF + "partnerRequest.swf"], true, createScene);
			} else {
				createScene();
			}
		}
		
		private function createScene():void
		{
			super.show();
		}
	}
}